<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#0858A2;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
		<?php  $this->Form->cuenta($this->Access->getMy('id'));?>	
	<div class="desplegable">
		<?php  $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="talleres index">
	<fieldset>
	<legend><?php __('Logistica - Entidad Territorial: '.$nombre_entidad);?></legend>
	
	<table class="tabla_formulario" cellpadding="0" cellspacing="0">
	<tr>		
		<th><?php echo  'Capacitador';?></th>		
		<th class="actions"><?php __('');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($talleres as $tallere):		
	?>
	<tr class="tabla_formulario">
		<td><?php echo $tallere['User']['nombre_completo']; ?>&nbsp;</td>
		<td>
			<?php
				if(!$this->Logistica->existe_logistica($tallere['Tallere']['id']."/".$entidad)){
					echo $this->Html->link($this->Html->image('logisticas_add.png', array('alt'=> __('Logistica', true), 'border' => '0')),
									       '../logisticas/add/'.$entidad."/".$tallere['Tallere']['id'],array('escape' => false));
				}else{
					echo $this->Html->link($this->Html->image('logisticas_edit.png', array('alt'=> __('Logistica', true), 'border' => '0')),
										   '../logisticas/edit/'.$this->Logistica->getMy('id',$tallere['Tallere']['id'])."/".$entidad."/".$tallere['Tallere']['id'],array('escape' => false));
					
					echo $this->Html->link($this->Html->image('fotografias_agregar.png', array('alt'=> __('Fotos', true), 'border' => '0')),												
										   '../logisticas/fotos_logistica/'.$this->Logistica->getMy('id',$tallere['Tallere']['id']."/".$entidad),array('escape' => false));
				    if($this->Logistica->getMy('fotografia',$tallere['Tallere']['id'])!=""){
				    echo $this->Html->link($this->Html->image('fotografias_ver.png', array('alt'=> __('Ver Fotos', true), 'border' => '0')),
										   '../logisticas/ver_fotografias_logistica/'.$this->Logistica->getMy('id',$tallere['Tallere']['id']."/".$entidad),array('escape' => false));
					}	
					echo $this->Html->link($this->Html->image('acta_agregar.png', array('alt'=> __('Anexos', true), 'border' => '0')),
										   '../logisticas/anexos_logistica/'.$this->Logistica->getMy('id',$tallere['Tallere']['id']."/".$entidad),array('escape' => false));
					if($this->Logistica->getMy('anexo',$tallere['Tallere']['id'])!=""){
					echo $this->Html->link($this->Html->image('acta_ver.png', array('alt'=> __('Agregar Anexos', true), 'border' => '0')),
										   '../logisticas/ver_anexos_logistica/'.$this->Logistica->getMy('id',$tallere['Tallere']['id']."/".$entidad),array('escape' => false));
					}	
			    }
			?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	</fieldset>
</div>